package sandbox.controller;

import java.util.List;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import sandbox.meta.SiteInfoMeta;
import sandbox.model.SiteInfo;

public class SiteListController extends Controller {

    @Override
    public Navigation run() {
        List<SiteInfo> list = Datastore.query(SiteInfoMeta.get()).asList();
        request.setAttribute("list", list);
        
        return forward("siteList.jsp");
    }
}
